package com.hx.localmiaosha.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author wonghiu
 * @Date 2021/6/6 10:24
 * @Version 1.0.1
 */
@Configuration
public class MyRabbitConfig {
    @Bean
    public Jackson2JsonMessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
